const express = require("express");
const path = require("path");
let app = express();
app.get("/getdata", (req, res) => {
  console.log("有请求过来");
  res.setHeader("Access-Control-Allow-Origin", "*");
  res.json({
    info: "我是4000端口返回的数据",
    status: 1,
  });
});
app.listen(4000);
